﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAO;
using DTO;
namespace WebClient.admin.Modules.diaryProducts
{
    public partial class List : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
   
            if (!this.IsPostBack)
            {
                LoadDataGrid();
            }
        }

        private void LoadDataGrid()
        {

            WebData db = new WebData();          
            this.grdDs.DataSource = db.GetAllDiaryproducts();
            this.grdDs.DataBind();
        }

        protected void grdDs_SelectedIndexChanged(object sender, EventArgs e)
        {
            
        }


     
    }
}